#pragma once
/***********************************************************************************************
COPYRIGHT 2011 Mafahir Fairoze

This file is part of Neural++.
(Project Website : http://mafahir.wordpress.com/projects/neuralplusplus)

Neural++ is a free software. You can redistribute it and/or modify it under the terms of
the GNU General Public License as published by the Free Software Foundation, either version 3
of the License, or (at your option) any later version.

Neural++ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License <http://www.gnu.org/licenses/> for more details.

***********************************************************************************************/
#include "../Backpropagation/ActivationLayer.h"
#include "../Backpropagation/BackpropagationConnector.h"

using namespace NeuralPlusPlus::Core::Backpropagation;

namespace NeuralPlusPlus
	{
	namespace Core
		{
		namespace Initializers        
			{
			/// <summary>
			/// An <see cref="IInitializer"/> using random function
			/// </summary>
			class RandomFunction : public IInitializer
				{
				public: double MinLimit;
				public: double MaxLimit;

						/// <summary>
						/// Creates a new random initialization function using random values between the specified
						/// limits.
						/// </summary>
				public: RandomFunction(double minLimit = 0, double maxLimit = 1);

						/// <summary>
						/// Initializes bias values of activation neurons in the activation layer.
						/// </summary>
				public: void Initialize(Layer *activationLayer);

						/// <summary>
						/// Initializes weights of all backpropagation synapses in the backpropagation connector.
						/// </summary>
				public: void Initialize(Connector *connector);

				};
			}

		}
	}